#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint flutter_volcengine.podspec` to validate before publishing.
#
Pod::Spec.new do |s|
  s.name             = 'flutter_volcengine'
  s.version          = '0.0.1'
  s.summary          = 'A new Flutter plugin project.'
  s.description      = <<-DESC
A new Flutter plugin project.
                       DESC
  s.homepage         = 'http://example.com'
  s.license          = { :file => '../LICENSE' }
  s.author           = { 'Your Company' => 'email@example.com' }
  s.source           = { :path => '.' , :git => 'https://github.com/volcengine/volcengine-specs.git'}
  s.source_files = 'Classes/**/*'
  s.public_header_files = 'Classes/**/*.h'
  s.dependency 'Flutter'
  s.static_framework = true
  
  #Flutter deps
  s.dependency 'RangersAPM/Flutter','3.3.1'
  s.dependency 'RangersAPM/CN','3.3.1'
  s.dependency 'OneKit'
  
  #Native deps
  s.dependency 'RangersAPM/Crash', '3.3.1'
  s.dependency 'RangersAPM/WatchDog', '3.3.1'
  s.dependency 'RangersAPM/OOM', '3.3.1'
  s.dependency 'RangersAPM/LAG', '3.3.1'
  s.dependency 'RangersAPM/UserException', '3.3.1'
  s.dependency 'RangersAPM/Monitors', '3.3.1'
  s.dependency 'RangersAPM/UITrackers', '3.3.1'
  s.dependency 'RangersAPM/Hybrid', '3.3.1'
  s.dependency 'RangersAPM/MemoryGraph', '3.3.1'
  s.dependency 'RangersAPM/NetworkPro', '3.3.1'
  s.dependency 'RangersAPM/EventMonitor', '3.3.1'
  s.dependency 'RangersAPM/SessionTracker', '3.3.1'
  s.dependency 'RangersAPM/APMLog', '3.3.1'
  s.dependency 'RangersAPM/CrashProtector', '3.3.1'
  s.dependency 'RangersAPM/CPUException', '3.3.1'
  s.dependency 'RangersAPM/MetricKit', '3.3.1'
  s.dependency 'RangersAPM/Disk', '3.3.1'
  s.dependency 'RangersAPM/GWPASan', '3.3.1'
  s.dependency 'RangersAPM/Coredump', '3.3.1'

  s.dependency 'RangersAppLog/Core', '>=6.0.1'
  s.dependency 'RangersAppLog/Host/CN', '>=6.0.1'

  s.platform = :ios, '9.0'

  # Flutter.framework does not contain a i386 slice.
  s.pod_target_xcconfig = {
    "OTHER_LDFLAGS": "$(inherited) \"-ObjC\" -framework \"OneKit\" -framework \"RangersAPM\" -framework \"RangersAppLog\" ",
    'DEFINES_MODULE' => 'YES',
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386'
  }
  s.swift_version = '5.0'
end
